<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      /* font-size: 30px;
      font-weight: 700;
      font-variant: samll-caps;
      font-style: italic;
      font-family: serif;
      line-height: 30px; */

      /* 缩写属性 */
      /* font-style font-variant  font-weight font-size/line-height  font-family*/
      font: italic small-caps 700 30px/30px serif;
    }
  </style>
</head>

<body>
  <div class="box">我是div元素</div>
</body>

</html>